<?php

namespace App\Http\Requests\Admin\Permission;
use App\Http\Requests\Request;

class UpdateRequest extends Request{
    public function authorize(){
        return true;
    }

    public function rules(){
        return [
            'name' => 'required|max:50',
            'display_name'=>'required',
            'description'=>'required',
        ];
    }

    public function messages(){
        return [
            'name.required' => '用户名称必须',
            'name.max' => '用户名称最多50个字符',
            'display_name.required' => '权限名称必须填写',
            'description.required'=>'权限描述不能为空！',
        ];
    }
}
